package com.hiultra.archive.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hiultra.archive.mapper.SysExamineConfigMapper;
import com.hiultra.archive.domain.SysExamineConfig;
import com.hiultra.archive.service.ISysExamineConfigService;

/**
 * 审批配置Service业务层处理
 * 
 * @author ls
 * @date 2023-09-25
 */
@Service
public class SysExamineConfigServiceImpl implements ISysExamineConfigService 
{
    @Autowired
    private SysExamineConfigMapper sysExamineConfigMapper;

    /**
     * 查询审批配置
     * 
     * @param  examineConfigId 审批配置主键
     * @return 审批配置
     */
    @Override
    public SysExamineConfig selectSysExamineConfigByExamineConfigId(Long  examineConfigId)
    {
        return sysExamineConfigMapper.selectSysExamineConfigByExamineConfigId( examineConfigId);
    }

    /**
     * 查询审批配置列表
     * 
     * @param sysExamineConfig 审批配置
     * @return 审批配置
     */
    @Override
    public List<SysExamineConfig> selectSysExamineConfigList(SysExamineConfig sysExamineConfig)
    {
        return sysExamineConfigMapper.selectSysExamineConfigList(sysExamineConfig);
    }

    /**
     * 新增审批配置
     * 
     * @param sysExamineConfig 审批配置
     * @return 结果
     */
    @Override
    public int insertSysExamineConfig(SysExamineConfig sysExamineConfig)
    {
        return sysExamineConfigMapper.insertSysExamineConfig(sysExamineConfig);
    }

    /**
     * 修改审批配置
     * 
     * @param sysExamineConfig 审批配置
     * @return 结果
     */
    @Override
    public int updateSysExamineConfig(SysExamineConfig sysExamineConfig)
    {
        return sysExamineConfigMapper.updateSysExamineConfig(sysExamineConfig);
    }

    /**
     * 批量删除审批配置
     * 
     * @param  examineConfigIds 需要删除的审批配置主键
     * @return 结果
     */
    @Override
    public int deleteSysExamineConfigByExamineConfigIds(Long[]  examineConfigIds)
    {
        return sysExamineConfigMapper.deleteSysExamineConfigByExamineConfigIds( examineConfigIds);
    }

    /**
     * 删除审批配置信息
     * 
     * @param  examineConfigId 审批配置主键
     * @return 结果
     */
    @Override
    public int deleteSysExamineConfigByExamineConfigId(Long  examineConfigId)
    {
        return sysExamineConfigMapper.deleteSysExamineConfigByExamineConfigId( examineConfigId);
    }
}
